package cn.xzhang.boot.model.dto.carousel;

import cn.xzhang.boot.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 轮播图分页请求
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(description = "轮播图分页请求")
@EqualsAndHashCode(callSuper = true)
public class CarouselPageReqDTO extends PageParam implements Serializable {



    @Schema(description = "id")
    private Long id;



    @NotEmpty(message = "跳转链接地址不能为空")
    @Schema(description = "跳转链接地址")
    private String url;


    @NotNull(message = "排序字段不能为空")
    @Schema(description = "排序字段",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;


    @NotNull(message = "缩略图地址不能为空")
    @Schema(description = "缩略图地址",requiredMode = Schema.RequiredMode.REQUIRED)
    private String picUrl;


    @NotNull(message = "跳转方式，默认：self，外站：miniProgram不能为空")
    @Schema(description = "跳转方式，默认：self，外站：miniProgram",requiredMode = Schema.RequiredMode.REQUIRED)
    private String target;


    @NotNull(message = "外部小程序的app-id不能为空")
    @Schema(description = "外部小程序的app-id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String appId;






}
